package com.whosly.disclosure.early.handler.autoconfig.annotation;

import com.whosly.disclosure.early.handler.autoconfig.registrar.DisclosureEarlyConfigRegistrar;
import org.slf4j.event.Level;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * EnableAuto
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Import(DisclosureEarlyConfigRegistrar.class)
public @interface EnableAutoDisclosureEarly {
    /**
     * 是否开启
     */
    boolean enabled() default true;

    /**
     * 日志级别
     */
    Level level() default Level.INFO;

}
